import json


def build_data(file_path):
    with open(file_path,"r",encoding="utf-8") as f:
        data = json.load(f)#load（）是将接送数据转换成列表，loads（）是将接送数据转换成字符串
        new_list  =[]
        for i in data:
            new_list.append(tuple(i.values()))
        return new_list

if __name__ == '__main__':
    # print(build_data("../data/add_user_data.json"))
    print(build_data("../data/query_user_data.json"))